package com.jicheng;

public class worker {
    private String name;
    private int id;
    private double money;

    public worker(String name, int id, double money) {
        this.name = name;
        this.id = id;
        this.money = money;
        show();
    }
    public void show(){
        System.out.print("姓名："+name+",工号为："+id+",工资："+money);
    }

    public void work(){
        System.out.println("工作work");
    }
}
